#!/bin/sh
# - thp_enabled
# - thp_defrag
# - shmem_enabled

. $LKP_SRC/lib/reproduce-log.sh

if [ -n "$thp_enabled" ]; then
	log_eval "echo '$thp_enabled' > /sys/kernel/mm/transparent_hugepage/enabled"
fi

if [ -n "$thp_defrag" ]; then
	log_eval "echo '$thp_defrag' > /sys/kernel/mm/transparent_hugepage/defrag"
fi

if [ -n "$shmem_enabled" ]; then
	log_eval "echo '$shmem_enabled' > /sys/kernel/mm/transparent_hugepage/shmem_enabled"
fi
